﻿$(function () {
    $.ajax({
        url:'/home/GetCategory',
        type: 'get',
        success: function (res) {
            alert(res)
            $('#catelist').html('');
            res.forEach(function(item, index){
                let str = `<li>
                    	<div class="fj">
                        	<span class="n_img"><span></span><img src="images/nav3.png" /></span>
                            <a href="#"><span class="fl">${item.Title}</span></a>
                        </div>
                        </li>`;
                
                $('#catelist').append(str);
            })
           
        }
    })
})